<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>跳跃的弹性小球加载动画</title>
    <link rel="stylesheet" href="index.css">
</head>
<body>
    <div class="loader">
        <!-- --i为自定义属性，可通过var函数对其调用 -->
        <span class="ball" style="--i:1;"></span>
        <span class="shadow" style="--i:1;"></span>
        <span class="ball" style="--i:2;"></span>
        <span class="shadow" style="--i:2;"></span>
        <span class="ball" style="--i:3;"></span>
        <span class="shadow" style="--i:3;"></span>
        <span class="ball" style="--i:4;"></span>
        <span class="shadow" style="--i:4;"></span>
        <span class="ball" style="--i:5;"></span>
        <span class="shadow" style="--i:5;"></span>
    </div>
</body>
</html>